package br.com.estudos.colecoes.collections;

import java.util.ArrayList;

public class Listas {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ArrayList arrayList = new ArrayList();

		arrayList.add("wallyson");
		arrayList.add(123);
		arrayList.add(1, 3);

		System.out.println(arrayList.size());

		boolean verificacao = arrayList.contains("wallyson");
		System.out.println(verificacao);

		arrayList.remove("wallyson");
		System.out.println(arrayList.contains("wallyson"));

		arrayList.clear();

		System.out.println(arrayList.size());

	}
}
